From 6c3936fb9aaeb7722ca05a9206000260450cd0bf Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 26 Apr 2014 14:38:07 -0400 Subject: [PATCH] Document iconic section support https://bugzilla.gnome.org/show_bug.cgi?id=727477 --- gtk/gtkpopover.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 677e2497bd..7d927d377a 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -37,6 +37,40 @@ * is desired on a popover, gtk_popover_set_modal() may be called on it * to tweak its behavior. * + * ## GtkPopover as menu replacement + * + * GtkPopover is often used to replace menus. To facilitate this, it + * supports being populated from a #GMenuModel, using + * gtk_popover_new_from_model(). In addition to all the regular menu + * model features, this function supports rendering sections in the + * model in a more compact form, as a row of icon buttons instead of + * menu items. + * + * To use this rendering, set the ”display-hint” attribute of the + * section to ”horizontal-buttons” and set the icons of your items + * with the ”verb-icon” attribute. + * + * |[ + *
+ * horizontal-buttons + * + * Cut + * app.cut + * edit-cut-symbolic + * + * + * Copy + * app.copy + * edit-copy-symbolic + * + * + * Paste + * app.paste + * edit-paste-symbolic + * + *
+ * ]| + * * Since: 3.12 */ -- 2.30.2